package bb.lanxing.lib.devices.sprint.entity;

import android.os.Parcel;
import android.os.Parcelable;
import java.math.BigDecimal;

public class SprintHeightVal extends SprintDecimal {
    public static final Parcelable.Creator<SprintHeightVal> CREATOR = new Parcelable.Creator<SprintHeightVal>() {
        @Override
        public SprintHeightVal createFromParcel(Parcel parcel) {
            return new SprintHeightVal(parcel);
        }

        @Override
        public SprintHeightVal[] newArray(int i) {
            return new SprintHeightVal[i];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    public SprintHeightVal(String str, String str2, boolean z, boolean z2) {
        super(str, str2, z, z2);
    }

    public SprintHeightVal(SprintDecimal sprintDecimal) {
        super(sprintDecimal);
    }

    public SprintHeightVal(String str, int i) {
        super(str, i);
    }

    public SprintHeightVal(String str, int i, boolean z, boolean z2) {
        super(str, i, z, z2);
    }

    protected SprintHeightVal(Parcel parcel) {
        super(parcel);
    }

    @Override
    public void onMetric() {
        this.toMetric = new BigDecimal(this.toBritish).multiply(new BigDecimal("30.48")).toString();
    }

    @Override
    public void onBritish() {
        this.toBritish = new BigDecimal(this.toMetric).multiply(new BigDecimal("0.0328")).toString();
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        super.writeToParcel(parcel, i);
    }
}
